﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using ICSharpCode.SharpZipLib.GZip;
namespace SpyTxT
{
    class Zlib
    {
   
        public static int decompressdata(Byte[] incompressdata, Byte[] outcompressdata)
        {
            MemoryStream incompressstream = new MemoryStream(incompressdata);
            GZipInputStream instream = new GZipInputStream(incompressstream);

            int readlen = instream.Read(outcompressdata, 0, outcompressdata.Length);

            instream.Close();
            incompressstream.Close();

            return readlen;
           
        }
    }
}
